package cn.dgiot.fd.model;

import java.sql.Timestamp;

/**
 * [属性上报记录]
 * @author
 *
 */
public class PropertyReportModel extends BaseModel{
	/** 产品key */
	private String productKey;
	/** 设备名称 */
	private String deviceName;
	/** 设备id */
	private String iotId;
	/** id */
	private String id;
	/** 属性key */
	private String propertyKey;
	/** 属性名称 */
	private String propertyName;
	/** 属性值 */
	private String propertyValue;
	/** 上报时间 */
	private Timestamp reportTime;
	/** 创建时间 */
	private Timestamp createTime;
	/** 属性类别  1:设备   2：下位机 */
	private String propertyType;
	
	public PropertyReportModel(){
		
	}
	
	public PropertyReportModel(PropertyReportFlowModel propertyReportFlowModel){
		this.setProductKey(propertyReportFlowModel.getProductKey());
		this.setDeviceName(propertyReportFlowModel.getDeviceName());
		this.setIotId(propertyReportFlowModel.getIotId());
		this.setPropertyKey(propertyReportFlowModel.getPropertyKey());
		this.setPropertyName(propertyReportFlowModel.getPropertyName());
		this.setPropertyValue(propertyReportFlowModel.getPropertyValue());
		this.setReportTime(propertyReportFlowModel.getReportTime());
		this.setPropertyType(propertyReportFlowModel.getPropertyType());
	}
	
	public String getProductKey() {
		return productKey;
	}
	public void setProductKey(String productKey) {
		this.productKey = productKey;
	}
	public String getDeviceName() {
		return deviceName;
	}
	public void setDeviceName(String deviceName) {
		this.deviceName = deviceName;
	}
	public String getIotId() {
		return iotId;
	}
	public void setIotId(String iotId) {
		this.iotId = iotId;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getPropertyName() {
		return propertyName;
	}
	public void setPropertyName(String propertyName) {
		this.propertyName = propertyName;
	}
	public String getPropertyValue() {
		return propertyValue;
	}
	public void setPropertyValue(String propertyValue) {
		this.propertyValue = propertyValue;
	}
	public Timestamp getReportTime() {
		return reportTime;
	}
	public void setReportTime(Timestamp reportTime) {
		this.reportTime = reportTime;
	}
	public Timestamp getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}
	public String getPropertyType() {
		return propertyType;
	}
	public void setPropertyType(String propertyType) {
		this.propertyType = propertyType;
	}

	public String getPropertyKey() {
		return propertyKey;
	}

	public void setPropertyKey(String propertyKey) {
		this.propertyKey = propertyKey;
	}

}
